Searches for a that matches the specified type TTarget, and returns the first occurrence within the entire collection.
public Find<>()
where TTarget: T
'Declaration
Public Overloads Function Find(Of As T)() As
'Usage
Dim instance As FieldCollection(Of T)
Dim value As
value = instance.Find(Of TTarget)()
Type Parameters
- TTarget
Return Value
The first that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type TTarget.